package com.ruoyi.project.gxgw_modules.adsList.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.aspectj.lang.annotation.Excel.Type;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.gxgw_modules.adsense.domain.Adsense;

import java.util.Date;

/**
 * 广告管理表 cxj_ads_list
 * 
 * @author ruoyi
 * @date 2019-01-17
 */
public class AdsList extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 序号 */
	@Excel(name = "广告编号", type = Type.IMPORT)
	private Integer adsListId;
	/** 广告标题 */
	@Excel(name = "广告标题")
	private String adsListTitle;
	/** 广告封面 */
	@Excel(name = "广告封面")
	private String adsListImage;
	/** 广告链接 */
	@Excel(name = "广告链接")
	private String adsListUrl;
	/** 详情 */
	@Excel(name = "详情")
	private String adsListDetail;
	/** 所属广告位 */
	@Excel(name = "所属广告位Id")
	private Integer adsId;
	/** 使用状态 */
	@Excel(name = "使用状态")
	private Integer adsListState;
	/** 发布时间 */
	@Excel(name = "发布时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date adsListPublic;
	/** 创建人 */
	@Excel(name = "创建人")
	private String createBy;
	/** 创建时间 */
	@Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/** 最后修改人 */
	@Excel(name = "最后修改人")
	private String updateBy;
	/** 修改时间 */
	@Excel(name = "修改时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/** 备注 */
	@Excel(name = "备注")
	private String remark;
	/**  */
	@JsonIgnore
	private String delFlag;
	@Excel(name = "所属广告位名称")
	private String adsName;
	
	/** */
	private Adsense adsense;
	/**关键字，数据库中无此字段，主要是用于关键字搜索 */
	private String key;
	

	public void setAdsListId(Integer adsListId) 
	{
		this.adsListId = adsListId;
	}

	public Integer getAdsListId() 
	{
		return adsListId;
	}
	public void setAdsListTitle(String adsListTitle) 
	{
		this.adsListTitle = adsListTitle;
	}

	public String getAdsListTitle() 
	{
		return adsListTitle;
	}
	public void setAdsListImage(String adsListImage) 
	{
		this.adsListImage = adsListImage;
	}

	public String getAdsListImage() 
	{
		return adsListImage;
	}
	public void setAdsListUrl(String adsListUrl) 
	{
		this.adsListUrl = adsListUrl;
	}

	public String getAdsListUrl() 
	{
		return adsListUrl;
	}
	public void setAdsListDetail(String adsListDetail) 
	{
		this.adsListDetail = adsListDetail;
	}

	public String getAdsListDetail() 
	{
		return adsListDetail;
	}
	public void setAdsId(Integer adsId) 
	{
		this.adsId = adsId;
	}

	public Integer getAdsId() 
	{
		return adsId;
	}
	public void setAdsListState(Integer adsListState) 
	{
		this.adsListState = adsListState;
	}

	public Integer getAdsListState() 
	{
		return adsListState;
	}
	public void setAdsListPublic(Date adsListPublic) 
	{
		this.adsListPublic = adsListPublic;
	}

	public Date getAdsListPublic() 
	{
		return adsListPublic;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adsListId", getAdsListId())
            .append("adsListTitle", getAdsListTitle())
            .append("adsListImage", getAdsListImage())
            .append("adsListUrl", getAdsListUrl())
            .append("adsListDetail", getAdsListDetail())
            .append("adsId", getAdsId())
            .append("adsListState", getAdsListState())
            .append("adsListPublic", getAdsListPublic())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }

	public Adsense getAdsense() {
		return adsense;
	}

	public void setAdsense(Adsense adsense) {
		this.adsense = adsense;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getAdsName() {
		return adsName;
	}

	public void setAdsName(String adsName) {
		this.adsName = adsName;
	}


}
